package huixue.cn.com.rxapp.ui;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import javax.inject.Inject;

import huixue.cn.com.library.util.ToastUtils;
import huixue.cn.com.rxapp.R;
import huixue.cn.com.rxapp.base.SimpleActivity;
import huixue.cn.com.rxapp.dagger2.DaggerFactoryActivityCompent;
import huixue.cn.com.rxapp.dagger2.Product;

public class Dagger2Activity extends SimpleActivity {

    /*@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_dagger2);
    }*/

    @Inject
    Product product;

    @Override
    public int getLayout() {
        return R.layout.activity_dagger2;
    }

    @Override
    public void initView() {

    }

    @Override
    public void addEvent() {
        DaggerFactoryActivityCompent.builder().build().inject(this);
        ToastUtils.showToast("product=="+product.hashCode());
    }
}
